'''
Created on 28/03/2010

@author: miguel
'''
class Instruction(object):
    (MOVE_UP, MOVE_DOWN, MOVE_LEFT, MOVE_RIGHT, STOP, EXPLODE) = range(6)
    def __init__(self, instruction, time):
        self.instruction = instruction
        self.time = time * 30

    def get_instruction(self):
        return self.instruction

    def get_time(self):
        return self.time

    def set_instruction(self, instruction):
        self.instruction = instruction

    def set_time(self, time):
        self.time = time

    def print_instruction(self):
        movements = ['MOVE_UP', 'MOVE_DOWN', 'MOVE_LEFT', 'MOVE_RIGHT', 'STOP', 'EXPLODE']
        print movements[self.instruction], self.time